<template>
  <div class="list-container">
    <div class="list-head">
      <img src="@/assets/images/back.png" alt="" class="back" @click="onBack" />
      <span class="head-title">智慧终端</span>
    </div>
    <div class="content">
      <div class="list-items">
        <router-link to="/pageview?key=c1" class="item bgary">工伤赔偿<span class="small">快速计算</span></router-link>
        <router-link to="/pageview?key=c2" class="item bred">工伤赔偿<span class="small">伤残鉴定</span></router-link>
        <router-link to="/pageview?key=c3" class="item bgreen">交通事故<span class="small">赔偿计算</span></router-link>
        <router-link to="/pageview?key=c4" class="item bblue">物业纠纷<span class="small">物业费纠纷</span></router-link>
        <router-link to="/pageview?key=c5" class="item bred">婚姻问题<span class="small">财产问题</span></router-link>
        <router-link to="/pageview?key=c6" class="item bgary">旅游纠纷</router-link>
        <router-link to="/pageview?key=c7" class="item bred">民间借贷<span class="small">利息计算</span></router-link>
      </div>
    </div>
    <!-- <div class="foot">
      <div class="foot-item">重庆市司法局</div>
      <div class="foot-item">重庆市普法办</div>
    </div> -->
  </div>
</template>

<script>
export default {
  methods: {
    onBack() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="less" scoped>
.content {
  min-height: calc(100vh - 0.74rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.list-head {
  background: #0b78e6;
  height: 0.44rem;
  position: relative;
  text-align: center;
  .back {
    position: absolute;
    width: 0.26rem;
    height: 0.26rem;
    display: block;
    left: 0.12rem;
    top: 0.09rem;
  }
  .head-title {
    font-size: 0.16rem;
    line-height: 0.44rem;
    color: #fff;
  }
}
.list-items {
  display: block;
  padding: 0 0.3rem;
  .item {
    display: block;
    width: 100%;
    margin-bottom: 0.2rem;
    font-size: 0.2rem;
    color: #fff;
    height: 0.6rem;
    line-height: 0.6rem;
    text-align: center;
    &.bred {
      background: rgb(207, 120, 138);
    }
    &.bblue {
      background: rgb(0, 162, 233);
    }
    &.bgary {
      background: rgb(139, 137, 193);
    }
    &.bgreen{
      background: rgb(136, 197, 18);
    }
  }
}
.foot{
  height: .3rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: .13rem;
  line-height: 1.2;
  background: #0b78e6;
  color: #fff;
}
</style>